package com.neuedu.security;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.security.config.annotation.method.configuration.EnableGlobalMethodSecurity;

//SpringBoot程序运行主类
@SpringBootApplication

//MyBatisPlus的Mapper代理代理对象扫描
@MapperScan("com.neuedu.security.mapper")

//开启SpringSecurity注解配置
@EnableGlobalMethodSecurity(prePostEnabled = true, securedEnabled=true)

public class SecurityApp {

    public static void main(String[] args) {
        SpringApplication.run(SecurityApp.class,args);
    }

}
